{layout name="public/layout" /}
{include file='yxnavbar'}


<script type="text/javascript">
	function jump(){
		layer.msg('正在准备下载');
	}
</script>
<div class="main">
	<div class="panel panel-info">
		<div class="panel-heading" style="height: 40px;">
			<div class="col-sm-2 col-xs-2 col-md-2">记录筛选 {if $logtotal>0}共{$logtotal}条{/if}</div>
			<div class="col-sm-7 col-xs-7 col-md-7"></div>
		</div>
		<div class="panel-body">
			<form id = "myform" action="./index.php" method="get" class="form-horizontal" role="form">
				<input type="hidden" name="c" value="site" />
				<input type="hidden" name="a" value="entry" />
				<input type="hidden" name="m" value="{$_P['m']}" />
				<input type="hidden" name="do" value="record" />
				<input type="hidden" name="op" value="icon_detail" />
				<input type="hidden" name="themeid" value="{$themeid}" />
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-1 control-label">关键字</label>
					<div class="col-sm-3 col-lg-3 col-md-3 col-xs-6">
						<input class="form-control" name="keyword" placeholder="请输入UID、昵称、姓名、电话等关键字" type="text" value="{$keyword}">
					</div>
					<div class="col-sm-1 col-lg-1 col-md-1 col-xs-6">
						<button class="btn btn-primary"><i class="fa fa-search"></i> 搜索日志</button>
					</div>
					<div class="col-sm-1 col-lg-1 col-md-1 col-xs-6">
						<input class="btn btn-default" type="submit" name="export_submit" onclick="jump()" id="export_submit" value="导出所有">
					</div>
					<div class="col-sm-1 col-lg-1 col-md-1 col-xs-6">
						<input class="btn btn-info" type="submit" name="view_submit" value="查看所有记录">
					</div>
				</div>
			</form>
		</div>
	</div>
</div>

    <table class="table bootstrap-table table-hover site-list">
        <tr>
            <th class="text-left" style="width: 80px;">编号</th>
            <th class="text-left" style="width: 150px;" >被助力</th>
            <th class="text-left" style="width: 150px;">助力者</th>
            <th class="text-left" >助力者姓名</th>
            <th class="text-left" >助力者电话</th>
			<th class="text-left" >是否支付</th>
            <th class="text-right" style="width: 160px;" >助力时间</th>
        </tr>
        {loop $log $index $item}
        <tr>
            <td class="text-left">{php echo count($log)-$index;}</td>
            <td class="text-left" ><a href="{php echo createWebUrl('record', array('op'=>'icon_detail','themeid'=>$item['themeid'],'uid'=>$item['fromuid']));}"
			><img src="{php echo tomedia($item['f_avatar']);}" width="28" style="border-radius: 3px;"><br>{$item['f_username']}</a></td>
			<td class="text-left" ><a href="{php echo createWebUrl('record', array('op'=>'icon_detail','themeid'=>$item['themeid'],'uid'=>$item['uid']));}"
			><img src="{php echo tomedia($item['avatar']);}" width="28" style="border-radius: 3px;"><br>{$item['nickname']}</a></td>
            <td class="text-left" >{$item['username']}</td>
            <td class="text-left" >{$item['mobile']}</td>
            <td class="text-left" >{php echo !empty($item['ispay'])?'已支付':'未支付';}</td>
            <td class="text-right" >{$item['ip']}</br>{php echo date('Y-m-d',$item['addtime']);}</br>{php echo date('H:i:s',$item['addtime']);}</td>
        </tr>
        {/loop}
        </tr>
    </table>

    {$logpager}